package com.bw.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "thread.pool.config", ignoreInvalidFields = true)
public class ThreadPoolConfigProperties {

    // 核心线程数
    private Integer corePoolSize = 20;
    //最大线程数
    private Integer maximumPoolSize = 50;
    // 空闲时间
    private Long keepAliveTime = 10L;
    //等待队列
    private Integer blockQueueSize = 200;
}
